package com.ruoyi.business.service.impl;

import java.util.List;

import com.ruoyi.business.domain.THomeworkStu;
import com.ruoyi.business.domain.vo.THomeWorkStuVo;
import com.ruoyi.business.mapper.THomeworkStuMapper;
import com.ruoyi.business.service.ITHomeworkStuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author 最爱喝兽奶
 * @date 2022-08-13
 */
@Service
public class THomeworkStuServiceImpl implements ITHomeworkStuService
{
    @Autowired
    private THomeworkStuMapper tHomeworkStuMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public THomeworkStu selectTHomeworkStuById(Long id)
    {
        return tHomeworkStuMapper.selectTHomeworkStuById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tHomeworkStu 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<THomeworkStu> selectTHomeworkStuList(THomeworkStu tHomeworkStu)
    {
        return tHomeworkStuMapper.selectTHomeworkStuList(tHomeworkStu);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param tHomeworkStu 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTHomeworkStu(THomeworkStu tHomeworkStu)
    {
        return tHomeworkStuMapper.insertTHomeworkStu(tHomeworkStu);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param tHomeworkStu 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTHomeworkStu(THomeworkStu tHomeworkStu)
    {
        return tHomeworkStuMapper.updateTHomeworkStu(tHomeworkStu);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTHomeworkStuByIds(Long[] ids)
    {
        return tHomeworkStuMapper.deleteTHomeworkStuByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTHomeworkStuById(Long id)
    {
        return tHomeworkStuMapper.deleteTHomeworkStuById(id);
    }

    @Override
    public List<THomeWorkStuVo> selectHomeworkStuVoList(THomeworkStu tHomeworkStu) {
        return tHomeworkStuMapper.selectTHomeworkStuListVo(tHomeworkStu);
    }
}
